package com.zerui.manager.devicegroup.gateway;

import com.zerui.manager.devicegroup.DeviceGroup;

import java.util.List;
import java.util.Map;
import java.util.Set;
/**
 * @Author wh
 * @create_time 2023-08-23 11:07
 */
public interface DeviceGroupGateWay {

    DeviceGroup selectById(Long supId);

    DeviceGroup getNodeByName(String orgName);

    void addDeviceGroup(DeviceGroup deviceGroup);

    void updateById(DeviceGroup deviceGroup);

    void deleteById(Long id);

    List<DeviceGroup> selectBatchIds(Set<Long> orgIds);

    void updateBatch(List<DeviceGroup> deviceGroups);

    List<DeviceGroup> getDeviceGroupBySupId(Long supId);

    Map<Long, DeviceGroup> getDeviceGroupMapByIds(Set<Long> deviceList);
}
